package com.genesis.yunnanji.view;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import android.view.ViewGroup;
import android.widget.TextView;

import com.genesis.yunnanji.R;


/**
 * Created by Administrator on 2017/7/19.
 */

public class DataLoadingDialog extends Dialog {

    private TextView mTextView;

    public DataLoadingDialog(@NonNull Context context) {
        super(context, R.style.dialog);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_shade);
        getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
        mTextView = (TextView) findViewById(R.id.tv_shade_text);
    }

    public void setDialogText(String str) {
        if (!TextUtils.isEmpty(str)) {
            mTextView.setText(str);
        }
    }

}
